package com.b2c.pojo.vo;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Pattern;

import static content.common.Regexp.PHONE_REGEXP;


@Data
@Validated
public class PhoneVo {
    @Pattern(regexp = PHONE_REGEXP, message = "手机号格式有误")
    private String phone;
}
